﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="baoxiu_edit.aspx.cs" Inherits="MxWeiXinPF.Web.admin.jiaoshuifei.baoxiu_edit" %>


<%@ Import Namespace="MxWeiXinPF.Common" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>编辑大转盘活动</title>
    <%=PageJSAndStype("edit").ToString() %>
    <script type="text/javascript">
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();
            //初始化编辑器
            var editor = KindEditor.create('.editor', {
                width: '100%',
                height: '350px',
                resizeType: 1,
                uploadJson: '../../tools/upload_ajax.ashx?action=EditorFile&IsWater=1',
                fileManagerJson: '../../tools/upload_ajax.ashx?action=ManagerFile',
                allowFileManager: true
            });
            var editorMini = KindEditor.create('.editor-mini', {
                width: '100%',
                height: '250px',
                resizeType: 1,
                uploadJson: '../../tools/upload_ajax.ashx?action=EditorFile&IsWater=1',
                items: [
                    'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                    'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                    'insertunorderedlist', '|', 'emoticons', 'image', 'link']
            });

            //初始化上传控件
            $(".upload-img").InitUploader({ filesize: "<%=siteConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf", filetypes: "<%=siteConfig.fileextension %>" });

            $(".upload-album").InitUploader({ btntext: "批量上传", multiple: true, water: true, thumbnail: true, filesize: "<%=siteConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf" });

            //设置封面图片的样式
            $(".photo-list ul li .img-box img").each(function () {
                if ($(this).attr("src") == $("#hidFocusPhoto").val()) {
                    $(this).parent().addClass("selected");
                }
            });

            //创建上传附件
            $(".attach-btn").click(function () {
                showAttachDialog();
            });


            $("#btnSelectImg").click(function () {

                selectmodule("txtUrl");
            });

            function selectmodule(txtUrl) {


                var d = top.dialog({
                    title: '选择模块链接',
                    url: "/admin/dialog/selectmodulelink.aspx",
                    height: 420,
                    width: 440,
                    onclose: function () {

                        var imgUrl = this.returnValue; //获取返回值
                        if (imgUrl.length > 0) {

                            $("#" + txtUrl).val(imgUrl);
                        }


                    }
                }).showModal();

            }

        });

        //初始化附件窗口
        function showAttachDialog(obj) {
            var objNum = arguments.length;
            var attachDialog = top.dialog({
                id: 'attachDialogId',
                title: "上传附件",
                url: 'dialog/dialog_attach.aspx',
                width: 500,
                height: 180,
                onclose: function () {
                    var liHtml = this.returnValue; //获取返回值
                    if (liHtml.length > 0) {
                        $("#showAttachList").children("ul").append(liHtml);
                    }
                }
            }).showModal();
            //如果是修改状态，将对象传进去
            if (objNum == 1) {
                attachDialog.data = obj;
            }
        }
        //删除附件节点
        function delAttachNode(obj) {
            $(obj).parent().remove();
        }

    </script>

</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="action_list.aspx" class="back"><i class="iconfont icon-up"></i><span>返回保修列表</span></a>
          <i class="arrow iconfont icon-arrow-right"></i>
            <span>处理保修</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <!--内容-->
        <div id="floatHead" class="content-tab-wrap">
            <div class="content-tab">
                <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a href="javascript:;" onclick="tabs(this);" class="selected">处理保修</a></li>
                       
                    </ul>
                </div>
            </div>
        </div>

        <div class="tab-content">
            <dl>
                <dt>类型</dt>
                <dd>
                    <asp:HiddenField ID="hidid" runat="server" Value="0" />
                    <asp:Label ID="lblbx_type" runat="server" Text=""></asp:Label>
                </dd>
            </dl>

            <dl>
                <dt>提交时间</dt>
                <dd>
                      <asp:Label ID="lblcreate_time" runat="server" Text=""></asp:Label>
                </dd>
            </dl>

            <dl>
                <dt>联系人</dt>
                <dd>
                      <asp:Label ID="lblcontact_person" runat="server" Text=""></asp:Label>
                </dd>
            </dl>
              <dl>
                <dt>联系电话</dt>
                <dd>
                      <asp:Label ID="lblcontact_tel" runat="server" Text=""></asp:Label>
                </dd>
            </dl>
             <dl>
                <dt>地址</dt>
                <dd>
                      <asp:Label ID="lbladdr" runat="server" Text=""></asp:Label>
                </dd>
            </dl>

            <dl>
                <dt>情况说明</dt>
                <dd>
                    <asp:Label ID="lblbx_content" runat="server" Text=""></asp:Label>
                </dd>
            </dl>
            
             <dl>
                <dt>图片</dt>
                   
                <dd>
                   <asp:Image ID="imgbx_pic" runat="server" />
                </dd>
            </dl>
             <dl>
                <dt>处理状态</dt>
                   
                <dd>
                    <asp:Label ID="lblhas_repair" runat="server" Text=""></asp:Label>
                </dd>
            </dl>
            <dl>
                <dt>修复时间</dt>
                   
                <dd>
                    <asp:Label ID="lblrepair_time" runat="server" Text=""></asp:Label>
                </dd>
            </dl>




        </div>
         
        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-list">
                <asp:Button ID="btnSubmit" runat="server" Text="修复完毕" CssClass="btn" OnClick="btnSubmit_Click" />
                <a href="baoxiu_list.aspx"><span class="btn yellow">返回上一页</span></a>

            </div>
            <div class="clear"></div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
